package org.lixiong.seralizable;

import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;


public class Hotel implements Serializable {
    private Room room = new Room();

    public static void main(String[] args) {
        Hotel h = new Hotel();

        try {
            FileOutputStream fos = new FileOutputStream("hotel.dat");
            ObjectOutputStream oos = new ObjectOutputStream(fos);
            oos.writeObject(h);
            oos.close();
        } catch (Exception e) {
            // TODO: handle exception
            e.printStackTrace();
        }
    }
}


class Room {
}
